<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-系统管理">
</@frame.head>
<script type="text/javascript" src="${contextPath}/resources/js/tool/ckeditor/ckeditor.js"></script>
<div class="page-container">
	<form action="${contextPath}/crud/crud_save" method="post" id="save_form" name="save_form" enctype="multipart/form-data">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				商户名称：</label>
			<div class="formControls col-xs-6 col-sm-6">
				<input type="text" class="input-text" value="${crud.name}" placeholder="" id="name" name="name" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				商户类别：</label>
			<div class="formControls col-xs-6 col-sm-6">
	           <span class="select-box radius">
	           <select class="select"  name="crudType" id="crudType">
	           	
				<#list typeMap?keys as testKey>
				<#if typeMap[testKey]=crud.crudType>
				<option value="${testKey}" selected="selected">${typeMap[testKey]}</option>
				<#else>
				<option value="${testKey}" >              	${typeMap[testKey]}
     			</option>
				</#if>
				
				
				</#list>
	           </select>
	           </span>
			</div>
		</div>
		<#list crud.crudProCitys as proCity>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<#if proCity_index == 0><label for="">所在省市:</label></#if>
				<#if proCity_index != 0><label for="">&nbsp;&nbsp;&nbsp;&nbsp;</label></#if>
			</label>
			<div class="formControls col-xs-6 col-sm-6">
				<select    disabled="disabled">
				        <option > ${proCity.province.provName}</option>     
		   		</select>
		   		<span >
		   		<select    disabled="disabled">
				        <option > ${proCity.city.cityName}</option>     
		   		</select>
		   		</span>
			</div>
      	</div>
      	</#list>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				推荐等级：</label>
			<div class="formControls col-xs-6 col-sm-6">
				 <select class="select"  name="level" id="level">
				 	<option value="0" <#if crud.level==0>selected="selected"</#if> >低等</option>
				 	<option value="1" <#if crud.level==1>selected="selected"</#if> >中等</option>
				 	<option value="2" <#if crud.level==2>selected="selected"</#if> >高等</option>
				 </select>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				关键字：</label>
			<div class="formControls col-xs-6 col-sm-6">
				<input type="text" class="input-text" value="${crud.crudKeyWord}" placeholder="" id="crudKeyWord" name="crudKeyWord" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				商户大图：</label>
			<div class="formControls col-xs-6 col-sm-6">
				<input type="file" id="crudImage" name="crudImage" onchange="getFullPath(this,'big');">
					<div id="big_preview">
						<img id="big_images" width="462" height="105" style="clear:both; display:block; padding-left: 17px;" src="${crud.crudPic}" />
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				商户小图：</label>
			<div class="formControls col-xs-6 col-sm-6">
			<input type="file" id="crudImageSmall" name="crudImageSmall" onchange="getFullPath(this,'small');"/>
				<div id="big_preview">
					<img id="big_images" width="462" height="105" style="clear:both; display:block; padding-left: 17px;" src="${crud.crudSmallPic}"/>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>
				商户详情：</label>
			<div class="formControls col-xs-6 col-sm-10">
				<textarea id="crudInfo" name="crudInfo" rows="" cols="">${crud.crudInfo}</textarea>
				<script type="text/javascript">
					CKEDITOR.replace('crudInfo',{filebrowserUploadUrl : '${contextPath}/ckeditor/uploader?Type=File&crudID=${crud.id}&uploadModel=crud',filebrowserImageUploadUrl : '${contextPath}/ckeditor/uploader?Type=Image&crudID=${crud.id}&uploadModel=crud',filebrowserFlashUploadUrl : '${contextPath}/ckeditor/uploader?Type=Flash&crudID=${crud.id}&uploadModel=crud'});
	            </script>
			</div>
		</div>

	</form>
</div>
<@frame.end "default">
</@frame.end>

</body>
</html>